package com.st.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;

import com.st.dto.Student;

public class StudentDaoImpl implements StudentDao{
	public Student std;
	@Autowired
	HibernateTemplate hibernaTetemplate;
	public void setHibernaTetemplate(HibernateTemplate hibernaTetemplate) {
		this.hibernaTetemplate = hibernaTetemplate;
	}
	@Override
	public Student getStudent(int id) {
		Student student = hibernaTetemplate.get(Student.class, id);
		return student;
	}
}
